<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\admin\service\AdminService;
use think\facade\View;

class Dashboard extends AdminController
{
    public $noNeedPermission = ['index'];

    public function index()
    {
        $adminInfo = AdminService::instance()->getAdminInfo();
        return View::fetch('index',[
            'adminInfo' => $adminInfo
        ]);
    }
}
